package com.icinfo.cloud.provider.punish.fastcase.controller;

import com.icinfo.cloud.provider.punish.service.ICaseExecuteService;
import com.icinfo.cloud.provider.punish.ucase.punishexecute.dto.CasePunishActionDto;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 处罚执行 controller
 * @author chenhan
 */
@RestController
@RequestMapping("/execute")
public class CaseExecuteController extends BaseController {

    @Resource
    private ICaseExecuteService caseExecuteService;

    /**
     * 描述：案件处罚执行完毕
     *
     * @param casePunishActionDto {@link CasePunishActionDto}
     * @return Result 操作结果
     * @author chenhan
     * @date 2022年12月6日15:34:19
     */
    @PostMapping("/punishAction")
    @ApiOperation(value = "【V1.1.0】描述：案件处罚执行完毕", httpMethod = "POST")
    public Result punishAction(@RequestBody CasePunishActionDto casePunishActionDto) {
        return caseExecuteService.punishAction(casePunishActionDto);
    }

}
